import request from '/@/utils/request';

import {versions} from '/@/api/versions'

export function logList(query: object) {
    return request({
        url: `${versions}/system/loginLog/list`,
        method: 'get',
        params: query
    })
}


export function deleteLog(ids: number[]) {
    return request({
        url: `${versions}/system/loginLog/delete`,
        method: 'delete',
        params: {ids}
    })
}


export function clearLog() {
    return request({
        url: `${versions}/system/loginLog/clear`,
        method: 'delete',
    })
}
